<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ page import="com.pojo.OUser"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd 

">
<%
		OUser user=(OUser)session.getAttribute("user");
		String list = (String)request.getAttribute("list");
		int countques=(int) request.getAttribute("countques");
		int pagenum=(int) request.getAttribute("page");
		int pagecount=countques/5;
		if(countques%5==0)
			pagecount=countques/5-1;
		if(countques==0)
			pagecount=0;
%>
<html>
<head>
 <base href="<%=basePath%>">   
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>个人信息</title>      
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">    
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
<script type="text/javascript" src="Assets/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="Assets/js/js_z.js"></script>
<link rel="stylesheet" type="text/css" href="Assets/css/thems.css">
<script type="text/javascript">

$(document).ready(function() {
	fun1();
});

function fun1(){
	//查看兑换明细
	var list = <%=list%>;
	var html="";
	var a;
	for(var i in list){
		if(list[i].income==0){
			a="买了";
		}
		if(list[i].repay==0){
			a="卖了";
		}
		html+='<tr><td>'+list[i].income+'</td><td>'+list[i].repay+'</td><td>'+list[i].yue+'</td><td>'+a+list[i].tcount+list[i].goods+'</td><td>'+list[i].tratime+'</td></tr>';
	}
	$('#table').html(html);
}
</script>
</head>
<body>
<div class="h_top">
	<div class="h_top_m">
        欢迎来到商品交易大厅网
        <span>
欢迎回来会员<%=user.getUserID() %>  <a href="logout.html?">安全退出</a>
        </span>
    </div>
</div>
<!--顶部-->
<!--头部-->
<div class="header clearfix">
    <div class="logo"><a href="<%=basePath%>index.html"><img src="Assets/images/logo.png" alt="网"/></a></div>
    <div class="tel"><!--img src="Assets/images/tel.png" alt="400-168-0000"--></div>
</div>
<div class="nav_bg">
	<ul class="nav clearfix">
        <li><a href="main.html">首页</a></li>
		  <li><a href="bypt.html">商品交易</a></li>
        <li class="now"><a href="member.html">我的账户</a></li>
    </ul>
</div>

<!--头部-->

<div class="space_hx">&nbsp;</div>
<div class="second clearfix">
	<div class="scd_l">
    	<ul class="sidenav">
        	 
            <li><a href="member.html">个人信息</a></li>
		      <li><a href="selectwtdprice.html?goods=宝石">商品挂单</a></li>
             <li><a href="selllist.html?page=1&last=5">售出记录</a></li>
             <li><a href="buylist.html?page=1&last=5">购买记录</a></li> 	
             <li    class="now"><a href="gr_money.html?page=1&last=5">交易明细</a></li>
             <li><a href="tixian.html">提现明细</a></li>
				<li><a href="chongzhi.html">充值明细</a></li>
		<!--   <li><a href="tiqu.html">钱包管理</a></li>   -->

        </ul>
        <div class="space_hx">&nbsp;</div>
    </div>
    <div class="scd_r">
    	<div class="ucenter">
        	<div class="box">
  
   <table class="table table-striped table-bordered td-center" id="data-lists">
      <thead>
        <tr>
          <th>收入</th>
          <th>支出</th>
          <th>账户余额</th>
          <th>说明</th>
          <th class="col-sm-1 center-align-text">交易时间</th>
        </tr>
      </thead>
      <tbody id="table">
	   	
		 </tbody>
    </table>
            </div>
        </div>  
    </div>
</div>
<div class="space_hx">&nbsp;</div>
 <div class="space_hx">&nbsp;</div>
<div class="f_nav_bg">
	<dl class="f_nav clearfix">
    	<dt><img src="Assets/images/tel.png"  /></dt>
        <dd>
            <div class="tip" style="float:left; width:200px;">
            <span style="font-size:16px;">商品团队</span>
			<li>太原金属企业站</li> <li> 太原金属商城</li>  <li>太原金属会员网</li> 	 
            </div>
            
         <div class="tip" style="float:left; width:200px;">
            <span style="font-size:16px;">服务帮助</span>
			 
 <li><a href="news.html?classid=4">为什么选择我们</a></li>
 
 <li><a href="news.html?classid=3">网站声明</a></li>
 
 <li><a href="news.html?classid=2">公司公告</a></li>
 
 <li><a href="news.html?classid=1">行业动态</a></li>
  	 
            </div>
		  
           <div class="tip">
            <p> 交易大厅</p>
<p>&nbsp;</p>   	 
            </div>  
   
           
            
        </dd>
    </dl>  <div class="copyriht">
    	版权解释权归太原金属所有    
    </div></div>
</body>
</html>
